<?php

namespace App\Models\Dream;

use App\Api\Helpers\UpdateWithoutUsesTimestamps;
use App\Models\Traits\Timestamp;
use Illuminate\Database\Eloquent\Model;
use App\Models\Dream\Video\Branch;
use App\Models\Dream\Video\Comment;
use DateTimeInterface;

class Video extends Model
{
//    use Timestamp;
    use  UpdateWithoutUsesTimestamps;

    //
    public $table = 'dream_videos';


    //视频：具体视频章节
    public function branchs()
    {
        return $this->hasMany('App\Models\Dream\Video\Branch','video_id');
    }

    public function Comments()
    {
        return $this->hasMany('App\Models\Dream\Video\Comment','video_id');
    }
}
